/*
派车单

*/
import httpRequest from '@/utils/httpRequest'
// 获取派车单列表
export function getList (data) {
  return httpRequest({
    url: '/transport/list',
    method: 'get',
    params: data
  })
}
// 根据ID获取派车单信息
export function queryById (data) {
    return httpRequest({
        url: '/transport/queryById',
        method: 'get',
        params: data
    })
}
// 获取变量列表
export function getVarList (data) {
    return httpRequest({
        url: '/transport/extend/varList',
        method: 'get',
        params: data
    })
}
// 获取变量值
export function getVarValue (data) {
    return httpRequest({
        url: '/transport/extend/getVarValue',
        method: 'get',
        params: data
    })
}
// 更新变量值
export function editVarValue (data) {
    return httpRequest({
        url: '/transport/extend/save',
        method: 'post',
        data: data,
        headers: {'Content-Type': 'application/json; charset=utf-8'}
    })
}
// 新增派车单
export function edit (data) {
  return httpRequest({
    url: '/transport/save',
    method: 'post',
    params: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 实收录入
export function originalReceipts (data) {
  return httpRequest({
    url: '/transport/originalReceipts',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 删除派车单
export function delData (data) {
  return httpRequest({
    url: '/transport/delete',
    method: 'post',
    params: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 获取车辆详情
export function getDetail (data) {
    return httpRequest({
        url: '/truck/truck/getTurckDetail',
        method: 'get',
        params: data
    })
}
